package mixins;

import javassist.gluonj.Around;
import javassist.gluonj.Before;
import javassist.gluonj.Glue;
import javassist.gluonj.Pcd;
import javassist.gluonj.Pointcut;

@Glue 
public class NSUtilitiesAdditions {
	
	@Around("{ $_ = Class.forName($1, true, Thread.currentThread().getContextClassLoader()); }")
	Pointcut pc$classForName = 
		Pcd.call("java.lang.Class#forName(String)")
		.and.within("com.webobjects.foundation._NSUtilities");
	
	
	@Before("{ rapidturnaround.WORapidTurnaround.javaAgentRunning = true; }")
	Pointcut pc$javaAgentRunning =
		Pcd.call("rapidturnaround.WOClassHandler#initialize()");

}